package com.mtao.controller;



import com.mtao.BannerService;
import com.mtao.entity.Banner;
import com.mtao.entity.Result;
import jakarta.annotation.Resource;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/wx")
public class WxBannerController {
    @Resource
    private BannerService bannerService;

    @PostMapping("/banner/list")
    public Result getRoleList(){
        List<Banner> list= bannerService.bannerAllList("wx");
        return Result.success(list);
    }
}
